home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Errata for C Programming FAQs by Steve Summit
- Date: Tue, 27 Feb 96 17:47:51 GMT
- Organization: none
- Message-ID: <825443271snz@genesis.demon.co.uk>
- References: <DnED2E.ME3@aw.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <DnED2E.ME3@aw.com> summit@aw.com "Steve Summit" writes:
-
- >24 1.29 The text at the bottom of the page suggests that
- > "future directions" name patterns such as str[a-z]*
- > are reserved only if their corresponding headers
- > (e.g. <stdlib.h>) are included. The reserved
- > function names are unconditionally reserved;
- > it is only the macro names that are reserved only
- > if the header is included.
- > [Thanks and $1 to Mark Brader]
-
- Not quite true.
-
- If the relevant header files are not included then the names are reserved
- for identifiers with *external linkage* (function or object); a static
- function with the name strdel() is fine so long as string.h is not included
- previously in the translation unit. extern int strlen; is always illegal.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-